package com.zhiyun.service;

import com.zhiyun.domain.Student;
import com.zhiyun.domain.Teacher;
import com.zhiyun.domain.User;
import com.zhiyun.vo.Result;

public interface UserService {
    /**
     *
     * @param user
     * @return Student
     */
    public Result studentLogin(User user);

    /**
     *
     * @param user
     * @return Teacher
     */
    public Result teacherLogin(User user);
    public Result studentRegister(Student student);
    public Result teacherRegister(Teacher teacher);

    /**
     *
     * @param user
     * @return User
     */
    public Result UpdatePassword(Integer userId,String password);

}
